<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<% 
	String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+request.getContextPath()+"/";
	pageContext.setAttribute("basePath",basePath);
%>
<%
	String phone = (String)request.getSession().getAttribute("phone");
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
		<meta http-equiv="Content-Security-Policy" content="upgrade-insecure-requests">
		<title>系统设置</title>
		<link rel="icon" href="<%=basePath %>views/gj/img/favicon.png" type="image/x-icon">
		<link rel="stylesheet" href="<%=basePath %>views/lcx/layui-v2.5.5/layui/css/layui.css" />
		<link rel="stylesheet" href="<%=basePath %>views/lcx/layui-v2.5.5/layui/css/modules/layer/default/layer.css" />
		<link rel="stylesheet" href="<%=basePath %>views/lcx/css/sysdesigner.css" />
		<script src="<%=basePath %>views/lcx/layui-v2.5.5/layui/layui.js"></script>
		<script src="<%=basePath %>views/lcx/layui-v2.5.5/layui/lay/modules/layer.js"></script>
		<script type="text/javascript" src="<%=basePath %>views/lcx/js/jquery-3.3.1.min.js" ></script>
		<script type="text/javascript" src="<%=basePath %>views/lcx/js/personalCenter.js" ></script>
	</head>
	<body onload="startTime()">
		<div style="width: 1000px;margin: 0 auto;">
			<div class="hhhh">
				<div class="header">
					<div style="display: inline-block;">
						<img width="587px" src="${basePath }views/lcx/img/logo.png" class="logo"/>
					</div>
					<div style="display: inline-block; vertical-align: top; height: 130px; margin-top: 30px;">
						<font>
							<span id="nowDateTimeSpan"></span>
						</font> 
						<div style="width: 240px;">
							<iframe frameborder="0" allowtransparency="true" src="http://i.tianqi.com/index.php?c=code&id=36&icon=5&num=1"></iframe>
						</div>
					</div>
					<div style="display: inline-block; ">
						<c:choose>
							<c:when test="${user==null }">
								<div style="display: inline-block; margin: 0px 20px; position: relative;" id="flag1">
									<a style="margin: 0px 5px;" href="${basePath}views/user/login.jsp" class="login">登录</a>
									<a style="margin: 0px 5px;" href="${basePath}views/user/register1.jsp" class="register">注册</a>
								</div>
							</c:when>
							<c:otherwise>
								<div style="display: inline-block; padding-left: 20px; padding-top: 20px;" id="flag2">
									<a title="个人中心" href="<%=basePath %>personInit" style="margin: 0; padding: 0;">
										<c:choose>
											<c:when test="${user.head_photo==null }">
												<img width="100px" height="100px" src="<%=basePath %>views/lcx/img/2016061417302085.jpg"/>
											</c:when>
											<c:otherwise>
												<img width="100px" height="100px" src="${user.head_photo }"/>
											</c:otherwise>
										</c:choose>
									</a>
								</div> 
							</c:otherwise>
						</c:choose>
					</div>
				</div>
				<div class="Navigation">
					<ul>
						<li><a href="<%=basePath %>index.do">首页</a></li>
						<li><a href="<%=basePath %>views/user/list.jsp">非遗清单</a></li>
						<li><a href="<%=basePath %>views/zcs/answerpage/main.jsp">非遗知多少</a></li>
						<li><a href="<%=basePath %>views/zcs/answerpage/moyi_succeed_.jsp">传承现状</a></li>
						<li><a href="<%=basePath %>views/jzl/compony.jsp"><span>莫遗小窝</span></a></li>
						<li><a href="<%=basePath %>luntan">论坛</a></li>
						<li><a href="<%=basePath %>views/user/maptest.jsp">非遗一览</a></li>
						<li><a href="<%=basePath %>views/user/activity.jsp">活动公告</a></li>
						<c:if test="${user.status==1 }">
							<li><a href="${basePath}sysInit">系统设置</a></li>
						</c:if>
					</ul>
				</div>
			</div>
			<div class="main">
				<div class="content-left">
					<ul class="layui-nav layui-nav-tree" lay-filter="test">
						<li id="liq1" class="layui-nav-item">
						  <a href="${basePath}sysInit">图片轮播</a></li>
						<li id="liq2" class="layui-nav-item">
						  <a href="${basePath }views/lcx/hot-special.jsp">热门专题</a></li>
						<li id="liq3" class="layui-nav-item layui-nav-itemed">
							<a href="javascript:;">公告发布</a>
							<dl class="layui-nav-child">
								<dd><a href="${basePath }views/lcx/noticeManager.jsp">公告发布</a></dd>
								<dd><a href="#" onclick="selecttype()">公告管理</a></dd>
							</dl>
						<li id="liq4" class="layui-nav-item">
							<a href="${basePath }views/lcx/addList.jsp">新增清单</a></li>
						<li class="layui-nav-item">
							<a href="${basePath }views/lcx/listManager.jsp">清单管理</a>
						</li>
					</ul>
				</div>
				<div class="content-right">
					<iframe id="sonPage" width="780px" height="550px" src="${basePath }views/lcx/noticeManager-addNotice.jsp"></iframe>
				</div>
			</div>
			<div id="foot" class="foot">
				<hr class="layui-bg-orange">
				<div class="copyright">
					小莫2019
				</div>
				<div class="copyright">
					All Rights Reserved 版权所有，违者必究
				</div>
				<div class="copyright">
					河南省郑州市高新区科学大道100号
				</div>
				<div class="copyright">
					联系我们 邮箱：iezljin@163.com QQ：2313954270
				</div>
				<div class="footright">
					<div class="footblock">
						<img src="<%=basePath %>views/lcx/img/weichatQRCode.jpg" />
						<div>莫遗官方微信公众号</div>
					</div>
					<div class="footblock">
						<img src="<%=basePath %>views/lcx/img/weibo.png" />
						<div>莫遗官方微博</div>
					</div>
					<div class="footblock">
						<img src="<%=basePath %>views/lcx/img/QQtalk.jpg" />
						<div>莫遗官方QQ讨论群</div>
					</div>
				</div>
			</div>
		</div>	
		<script type="text/javascript">
			layui.use('element', function(){
			  var element = layui.element;
			});
			function selecttype(data){
				$("#sonPage").attr("src","${basePath }noticeManagerInit");
			}
		</script>
	</body>
</html>